<!--
*@author 白晴语
*@date 2023-10-12 10:28
*@description:
-->
<template>
  <FaceDetect></FaceDetect>
  <image-type-choice></image-type-choice>
</template>
<script>
import ImageTypeChoice from "../ImageTypeChoice.vue";
import FaceDetect from "../FaceDetect.vue";
import http from "../../utils/request.js";
export default {
  name: "Test",
  components: {FaceDetect,ImageTypeChoice},
  props: {},
  data() {
    return {}
  },
  methods: {
    message(){
      http.get("http://localhost:8080/test").then(function (respond){
        console.log(respond.data.code)
        if (respond.data.code===0){
          location.href="http://localhost:5173/index"
        }
      })
    }
  },mounted() {
    this.message()
  },
  setup() {

  }
}
</script>

<style scoped lang="less">
.el-main{
  background-color: palegoldenrod;
}
</style>
 